package com.project.webpage.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.project.webpage.dto.LineMonthlyAppealedDto;
import com.project.webpage.dto.SearchByMonthParam;
import com.project.webpage.mapper.LineMonthlyAppealedMapper;
import com.project.webpage.service.LineOperationAppealedService;
import com.project.webpage.service.LineOperationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LineOperationAppealedServiceImpl implements LineOperationAppealedService {

    @Resource
    private LineMonthlyAppealedMapper lineMonthlyAppealedMapper;

    @Override
    @DS("secondary")
    public List<LineMonthlyAppealedDto> getListForPage(SearchByMonthParam param) {
        return lineMonthlyAppealedMapper.selectListByUid(param);
    }
}
